 <template>
  <div>
    B组件
    <router-link to="/b1" tag="button">
      调到子组件B1
    </router-link>
     <router-link to="/b2" tag="button">
      调到子组件B2
    </router-link>
    <router-view>
  
    </router-view>
  </div>
</template>
 <script>
export default {
  data() {
    return {

    };
  },
  mounted(){
    //接收参数
    // console.log(this.$route.params.id);
    // console.log(this.$route.query.id);
  },
  methods: {},
  computed: {},
};
</script>
 <style lang='css'>
</style>